<script setup lang="ts">
import { inject, watchEffect } from 'vue'
import { configCKey } from './InjectType'

const config = inject(configCKey)

watchEffect(() => {
  console.log(config?.value.size)
})
</script>

<template>
  <div>{{ config?.size }}</div>
</template>

<style scoped></style>
